package org.jeecg.modules.scm.api.fallback;

import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.scm.api.ScmCommonCloudApi;
import org.jeecg.modules.scm.dto.EditInvItemRsDto;
import org.jeecg.modules.scm.entity.ScmFinaContract;

@Slf4j
public class ScmCommonCloudApiFallback implements ScmCommonCloudApi {
    @Setter
    private Throwable cause;

    @Override
    public Result<Boolean> updateByInvMsg(EditInvItemRsDto editInvItemRsDto) {
        log.error("资金方项目关系更新失败");
        return Result.error("资金方项目关系更新失败", false);
    }

    @Override
    public Result<?> finaContractEdit(ScmFinaContract scmFinaContract) {
        return null;
    }
}
